<template>
  <view class="fallIntervention">fallIntervention</view>
</template>

<script setup lang="ts">
import {getInterventionDetailsApi} from '@/apis/intervention/intervention'
import {ref,reactive} from 'vue'
import { onLoad } from '@dcloudio/uni-app'
const props = defineProps({
  id:String
})
const state = reactive({
  interventions:{}
})
const getInterventionDetails =async ()=>{
  console.log('我是props的',props.id)
  const res =  await getInterventionDetailsApi(props.id)
  state.interventions = res.data
  console.log(state.interventions)
}
onLoad(()=>{
  getInterventionDetails()
})
</script>

<style lang="scss" ></style>